﻿using System.Collections.Generic;

namespace K9Nano.Application.Setting;

public class SettingEditModel
{
    /// <summary>
    /// Unique name of the setting.
    /// </summary>
    public string Name { get; set; }

    /// <summary>
    /// Display name of the setting.
    /// This can be used to show setting to the user.
    /// </summary>
    public string? DisplayName { get; set; }

    /// <summary>
    /// A brief description for this setting.
    /// </summary>
    public string? Description { get; set; }

    /// <summary>
    /// Default value of the setting.
    /// </summary>
    public string? Value { get; set; }

    /// <summary>
    /// 若非空，作为设置值的选项
    /// </summary>
    public IReadOnlyList<KeyValuePair<string, string>>? Options { get; set; }
}
